﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UpdateAdmin.aspx.cs" Inherits="EmployeeCheckIn.UpdateAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        width: 430px;
    }
        .style4
        {
            width: 167px;
        }
        .style6
        {
            height: 53px;
        }
        .style11
        {
            width: 430px;
            height: 21px;
        }
        .style12
        {
            width: 167px;
            height: 21px;
        }
        .style15
        {
            height: 21px;
        }
    .style16
    {
            width: 814px;
        }
    .style17
    {
        width: 814px;
        height: 21px;
    }
        .style18
        {
            width: 430px;
            height: 25px;
        }
        .style19
        {
            width: 167px;
            height: 25px;
        }
        .style20
        {
            width: 814px;
            height: 25px;
        }
        .style21
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style1">
        <tr>
            <td bgcolor="White" class="style6" colspan="4" align="left" 
                style="color: #000000; font-size: large">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                แก้ไขข้อมูล</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;</td>
            <td align="right" class="style4" style="font-size: small; color: #000000">
                <span class="RedText">*</span>Username:</td>
            <td class="style16">
                <asp:TextBox ID="txtUserName" runat="server" Width="185px"></asp:TextBox>
                <asp:HiddenField ID="hdfUsername" runat="server" />
                <asp:Label ID="lbWarnUser" runat="server" ForeColor="Red" 
                    Text="*กรุณากรอกชื่อเข้าใช้ในระบบ" Visible="False"></asp:Label>
                <asp:Label ID="lbWarnHaveUser" runat="server" ForeColor="Red" 
                    Text="ชื่อนี้มีอยู่แล้ว" Visible="False"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;</td>
            <td align="right" class="style4" style="font-size: small; color: #000000">
                คำนำหน้า:</td>
            <td class="style16">
                <asp:RadioButtonList ID="rblTitleAdmin" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Value="1">นาย</asp:ListItem>
                    <asp:ListItem Value="2">นาง</asp:ListItem>
                    <asp:ListItem Value="3">นางสาว</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style11">
            </td>
            <td align="right" class="style12" style="font-size: small; color: #000000">
                <span class="RedText">*</span>ชื่อ:</td>
            <td class="style17">
                <asp:TextBox ID="txtName" runat="server" Width="185px"></asp:TextBox>
                <asp:Label ID="lbWarnNAme" runat="server" ForeColor="Red" Text="*กรุณากรอกชื่อ" 
                    Visible="False"></asp:Label>
            </td>
            <td class="style15">
            </td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;</td>
            <td align="right" class="style4" style="font-size: small; color: #000000">
                <span class="RedText">*</span>นามสกุล:</td>
            <td class="style16">
                <asp:TextBox ID="txtLastname" runat="server" Width="185px"></asp:TextBox>
                <asp:Label ID="lbWarnlsn" runat="server" Text="*กรุณากรอกนามสกุล" 
                    ForeColor="Red" Visible="False"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style18">
                </td>
            <td align="right" class="style19" style="font-size: small; color: #000000">
                โทรศัพท์:</td>
            <td class="style20">
                <asp:TextBox ID="txtPhone" runat="server" Width="185px"></asp:TextBox>
                <asp:Label ID="lbWarnPhone" runat="server" ForeColor="Red" 
                    Text="*กรุณากรอกหมายเลยโทรศัพท์เฉพาะตัวเลขเท่านั้น" Visible="False"></asp:Label>
            </td>
            <td class="style21">
                </td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;</td>
            <td align="right" class="style4" style="font-size: small; color: #000000">
                วันที่สมัคร:</td>
            <td class="style16">
                <asp:TextBox ID="txtDateRegis" runat="server" Width="185px" Enabled="False"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;</td>
            <td align="right" class="style4" style="font-size: small; color: #000000">
                สถานะ:</td>
            <td class="style16">
                <asp:DropDownList ID="ddlAdminStatus" runat="server" 
                    DataSourceID="LinqstatusUp" DataTextField="ADMIN_STATUS_NAME" 
                    DataValueField="ADMIN_STATUS_ID">
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqstatusUp" runat="server" 
                    ContextTypeName="EmployeeCheckIn.linqAdminStatusDataContext" 
                    Select="new (ADMIN_STATUS_ID, ADMIN_STATUS_NAME)" TableName="TBL_ADMIN_STATUS">
                </asp:LinqDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
            <td class="style4">
                &nbsp;</td>
            <td class="style16">
                <asp:Button ID="btSumit" runat="server" 
                    OnClientClick="return confirm('ยืนยันการแก้ไขข้อมูล?');return false;" onclick="btSumit_Click" 
                    style="margin-left: 0px" Text="บันทึก" Width="50px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="รีเซ็ต" 
                    Width="50px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td bgcolor="White" class="style2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                    Text="กลับสู่หน้าหลัก" Width="92px" />
            </td>
            <td class="style4">
                &nbsp;</td>
            <td class="style16">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
